package ProxyPattern;

public class Proxy implements HouseRent{
    private HouseOwner houseOwner;

    public Proxy(HouseOwner houseOwner) {
        this.houseOwner = houseOwner;
    }

    @Override
    public void rentHouse() {
        System.out.println("我是中介,开始代理房子~");

        houseOwner.rentHouse();


    }
}
